package com.neuedu.controller.registration;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.RegistLevel;
import com.neuedu.mapper.RegistLevelMapper;
import com.neuedu.service.registration.RegistLevelService;

@RestController
public class RegistLevelController {
	@Autowired
	private RegistLevelService registLevelService;
	@Autowired
	private RegistLevelMapper rm;
	//得到所有挂号级别
	@RequestMapping("/getRegistLevelList")
	public List<RegistLevel> getRegistLevelList() {
		return registLevelService.getRegistLevelList();
	}
	@PostMapping("/addRegistLevel")
	public Integer addRegistLevel(RegistLevel data){
		return rm.insert(data); 
	}
}
